package demo.model;

import static org.lwjgl.opengl.GL11.GL_DEPTH_TEST;
import static org.lwjgl.opengl.GL11.GL_LEQUAL;
import static org.lwjgl.opengl.GL11.glDepthFunc;
import static org.lwjgl.opengl.GL11.glEnable;
import engine.core.OpenGLView;

public class ModelDemo extends OpenGLView{

	public ModelDemo(String title) {
		super(title, 800, 600);
	}
	
	@Override
	public void init() {
		glEnable(GL_DEPTH_TEST);
		glDepthFunc(GL_LEQUAL);
	}

	public static void main(String[] args) {
		ModelDemo modelDemo = new ModelDemo("Model demo");
		modelDemo.addScene(new ModelScene());
		modelDemo.setCurrentScene("model");
		new Thread(modelDemo).start();
	}
}
